import { Counter } from "./views/Counter";

import store from "./store"
// const state = store.getState();   // 只执行一次  
// console.log(state)


export class ReduxDemo extends Component{
  render(){
    const state = store.getState();
    return (
      <div style={{padding:10}}>
        <h2> Redux  -  单向数据流  </h2>
        <p>集中式管理整个应用的 共享状态数据</p>
        <hr/>
        <Counter
          value={state}
        />
      </div>
    )
  }
}